package cn.dengta.webapp.user.form.query;

import cn.dengta.common.model.Status;
import cn.dengta.context.model.WesKit;
import cn.dengta.webapp.base.form.BaseForm;
import cn.dengta.webapp.base.form.QueryBaseForm;
import cn.dengta.webapp.user.entity.Moment;
import cn.dengta.webapp.user.model.Gender;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class MomentQuery extends QueryBaseForm<Moment> {

	/** ID */
	public Long id;
	/** 用户ID */
	public Long userId;
	/** 用户昵称 */
	public String userNickname;
	/** 用户性别 */
	public Gender userGender;
	public Gender forntGender;
	public Long selfId;
	/** 标签id */
	public Long tagId;
	/** 来自关注 */
	public boolean fromFollow;
	public WesKit wesKit;
	/** 查询近30天数据 */
	public Boolean last;

	public void setUserGender(Integer gender) {
		this.userGender = Gender.of(gender);
	}

	public void setFromFollow(Integer fromFollow) {
		this.fromFollow = Status.asResult(fromFollow);
	}

	public void setLast(Integer last) {
		this.last = Status.asResult(last);
	}

}
